from pdf2image import convert_from_bytes

def pdf_png(pdf_file):
    imgs = convert_from_bytes(pdf_file, dpi=200, fmt='JPG')
    return imgs

